package cn.elegent.txdemo.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * User
 * @description 商品类
 * @author WGL
 * @date 2022/11/8 22:44
 */
@TableName("product")
@Data
public class Product {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("price")
    private Integer price;

    @TableField("num")
    private Integer num;

}
